/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pe.edu.uch.syscom.hibernateSpringDao;

import java.util.Calendar;
import java.util.List;
import pe.edu.uch.syscom.mapping.TbVenta;
import pe.edu.uch.syscom.mapping.TbVentaDetalle;

/**
 *
 * @author Jose Tejada
 */
public interface HSVentaDAO {

    public int cambiarEstadoVenta( TbVenta tbVenta, String sNuevoEstado );

    public void guardarVenta( TbVenta tbVenta );

    public void guardarVentaDetalle( TbVentaDetalle tbVentDet );

    public List<TbVenta> listarVentasPorEstadoYFecha( String sEstadoVenta, Calendar calFechDesde, Calendar calFechHasta );

    public TbVenta traerVentaPorId( int iIdVenta );

    public void actualizarVentDet( TbVentaDetalle tbVentaDetAux );

    public int efectuarPago( TbVenta tbVenta );
}
